package utile

import (
	"math/big"
	"strconv"
)

func StringToFloat(s string) float64 {
	amount, _ := strconv.ParseFloat(s, 10)
	return amount
}

func ToEther(o *big.Int) *big.Float {
	pul, i := big.NewFloat(0), big.NewFloat(0)
	i.SetInt(o)
	pul.Mul(big.NewFloat(0.000000000000000001), i)
	return pul
}
